home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 1: Comms & Networking / Almathera Ten on Ten - Disc 1: Comms & Networking.iso / amiga-useful / perl / faq / 0.5_introduction next >
Text File  |  1995-05-04  |  11KB  |  232 lines

  1. Newsgroups: comp.lang.perl,comp.answers,news.answers
  2. Path: senator-bedfellow.mit.edu!bloom-beacon.mit.edu!hookup!news.kei.com!news.mathworks.com!news2.near.net!howland.reston.ans.net!news.sprintlink.net!ddi2.digital.net!vx!usenet!spp
  3. From: spp@vx.com
  4. Subject: comp.lang.perl FAQ 0/5 - Introduction
  5. Message-ID: <SPP.95Apr4140745@squid.vx.com>
  6. Followup-To: poster
  7. Sender: usenet@vx.com
  8. Nntp-Posting-Host: squid
  9. Organization: Varimetrix Corporation
  10. Date: Tue, 4 Apr 1995 18:07:45 GMT
  11. Approved: news-answers-request@MIT.EDU
  12. Lines: 217
  13. Xref: senator-bedfellow.mit.edu comp.lang.perl:47087 comp.answers:11034 news.answers:41331
  14.  
  15. Archive-name: perl-faq/part0
  16. Version: $Id: perl-intro,v 2.6 1995/04/04 16:37:56 spp Exp spp $
  17. Posting-Frequency: bi-weekly
  18. Change-Log: $Log: perl-intro,v $
  19. # Revision 2.6  1995/04/04  16:37:56  spp
  20. # 03/23/95 -  Changed wording on Question 4.20
  21. #
  22. # Revision 2.5  1995/03/17  16:46:39  spp
  23. # 03/07/95 -  Fixed incorrect numbering in 4.20+
  24. # 03/12/95 -  Updated from 5.000 to 5.001
  25. # 03/15/95 -  Changed 3.4 subject and 3.5 subject
  26. #
  27. # Revision 2.4  1995/01/31  14:44:32  spp
  28. # 12/02/94 -  The recent spread of CDROM and book FAQ collections has made
  29. #             copyright notices necessary.  This document now contains a
  30. #             copyright notice for Tom and myself.
  31. # 01/31/95 -  Added question 5.24, affecting parent environment from script
  32. #
  33.  
  34. Hear ye, hear ye.  This most honourable session on Perl Frequently Asked
  35. Questions is hereby called to order.  Please stand and show your respect
  36. for those that have gone before us.  Let us honour Larry Wall*, the father
  37. of Perl who unselfishly spends vast amounts of time reviewing this document
  38. for veracity and accuracy.  Let us also honour Tom Christiansen* without
  39. whom this document would not exist.  Finally, let us collectively honour
  40. the members of comp.lang.perl who have offered much advice and corrections
  41. to this list.
  42.  
  43. This article details the contents of the most Frequently Asked Questions in
  44. comp.lang.perl, a Usenet newsgroup devoted to the Perl programming language.
  45. There are five pieces following this, the general information questions in
  46. part1, part2 and part3 and the programming ones in part4 and part5.
  47.  
  48. If this is your first exposure to Perl, please read this document and the 
  49. perl(1) man page before asking questions in comp.lang.perl.  If you're using
  50. v4 perl, that page contains all you need to know (or at least enough to
  51. get started).  If you're using v5 perl, that page will show you where to
  52. look for specific information.  When we refer to perlmod(1), it means the
  53. "perlmod" man page in section "1" of the manual, just as Foo(3pm), that
  54. means it's the "Foo" man page in section "3pm" (perl modules) of the
  55. library.  The perl install does NOT automatically install the module man
  56. pages for you, however.
  57.  
  58. Hopefully the questions herein are asked enough that considerable net
  59. bandwidth can be saved by looking here before asking.  Also, hopefully
  60. there is enough information contained here that someone who has never
  61. heard of Perl can read this and at least have some sort of idea as to what
  62. Perl is.  If this is your first exposure to Perl, please read this and the
  63. Perl(1) man page before asking questions in comp.lang.perl.
  64.  
  65. Some questions in this group aren't really about Perl, but rather about
  66. system-specific issues.  You might also consult the Most Frequently Asked
  67. Questions list in comp.unix.questions for answers to this type of question.
  68.  
  69. The current version of perl is 5.001, which emerged into the world on 16
  70. October, 1994.  The previous non-beta version was 4.036 (version 4,
  71. patchlevel 36).  Many of these questions were written for perl4, however a
  72. lot of perl5 information has also been added.  Perl5 only features will be
  73. clearly marked as such, so as not to cause confusion for those still using
  74. perl4.  You should upgrade to perl5 as soon as possible though (see below).
  75.  
  76. This list was initially written, and still hacked upon, by Tom
  77. Christiansen*.  However, due to his erratic schedule, it is currently
  78. maintained by Stephen P Potter*.  First person singular pronouns, when not
  79. in quoted postings, generally are Tom talking.  
  80.  
  81. This document, and all its parts, are Copyright (c) 1994, Stephen P Potter
  82. and Tom Christiansen, perlfaq@perl.com.  All rights reservered.  Permisson
  83. to distribute this collection, in part or full, via electronic means
  84. (emailed, posted or archived) or printed copy are granted providing that no
  85. charges are involved, reasonable attempt is made to use the most current
  86. version, and all credits and copyright notices are retained.  Requests for
  87. other distribution rights, including incorporation in commercial products,
  88. such as books, magazine articles, or CD-ROMs should be made to
  89. perlfaq@perl.com.
  90.  
  91. This FAQ is archived on ftp.cis.ufl.edu [128.227.100.198] in the file
  92. pub/perl/doc/FAQ, as well as on rtfm.mit.edu [18.181.0.24] in
  93. /pub/usenet/comp.lang.perl.  If you have any suggested additions or
  94. corrections to this article, please send them to <perlfaq@perl.com>. 
  95.  
  96.  
  97. Part 1 - General Information and Availability
  98. 1.1) What is Perl?
  99. 1.2) What are perl4 and perl5?
  100. 1.3) What features does perl5 provide over perl4?
  101. 1.4) Where can I get docs on perl5?
  102. 1.5) Will perl5 break my perl4 scripts?
  103. 1.6) When will Perl stabiliize?
  104. 1.7) What's the difference between "perl" and "Perl"?
  105. 1.8) Is it a perl program or a perl script?
  106. 1.9) Is perl difficult to learn?
  107. 1.10) Should I program everything in perl?
  108. 1.11) How does perl compare with other scripting languages, like 
  109.       REXX or Tcl?
  110. 1.12) Where can I get perl from over the Internet (FTP)?
  111. 1.13) How can I get perl via Email?
  112. 1.14) How can I get perl via UUCP?
  113. 1.15) Are there other ways of getting perl?
  114. 1.16) Has perl been ported to machine FOO?
  115. 1.17) How do I get perl to compile on Solaris?
  116. 1.18) How do I get perl to compile on NeXTs?
  117. 1.19) What extensions are available from Perl and where can I get them?
  118. 1.20) What is dbperl and where can I get it?
  119. 1.21) Which DBM should I use?
  120. 1.22) Is there an SNMP aware perl?
  121.  
  122.  
  123. Part 2 - Informational Sources
  124. 2.1) Is there a USENET group for perl?
  125. 2.2) Have any books or magazine articles been published about perl?
  126. 2.3) When will the Camel and Llama books be updated?
  127. 2.4) What FTP resources are available?
  128. 2.5) What WWW/gopher resources are available?
  129. 2.6) Can people who don't have access to USENET get comp.lang.perl?
  130. 2.7) Are archives of comp.lang.perl available?
  131. 2.8) Is there a WAIS server for comp.lang.perl?
  132. 2.9) What other sources of information about Perl or training are available?
  133. 2.10) Where can I get training classes on Perl?
  134. 2.11) What companies ship or use perl?
  135. 2.12) Is there commercial, third-party support for perl?
  136. 2.13) What is a JAPH?  What does "Will hack perl for ..." mean?
  137. 2.14) Where can I get a collection of Larry Wall witticisms?
  138. 2.15) What are the known bugs?
  139. 2.16) Where should I post bugs?
  140. 2.17) Where should I post source code?
  141. 2.18) Where can I learn about object-orienting Perl programming?
  142. 2.19) Where can I learn about linking C with Perl? [h2xs]
  143. 2.20) What is perl.com?
  144. 2.21) What do the asterisks (*) throughout the FAQ stand for?
  145.  
  146.  
  147. Part 3 - Programming Aids
  148. 3.1) How do I use perl interactively?
  149. 3.2) Is there a perl profiler?
  150. 3.3) Is there a yacc for perl?
  151. 3.4) Is there a pretty printer (similar to indent(1)) for perl?
  152. 3.5) How can I convert my perl scripts directly to C or compile them into
  153.      binary form?
  154. 3.6) Where can I get a perl mode for emacs?
  155. 3.7) Is there a perl shell?
  156. 3.8) How can I use curses with perl?
  157. 3.9) How can I use X with perl?
  158. 3.10) Can I dynamically load C user routines?
  159. 3.11) What is undump and where can I get it?
  160. 3.12) How can I get '#!perl' to work under MS-DOS?
  161.  
  162.  
  163. Part 4 - General Programming, Regular Expressions (Regexp) and I/O
  164. 4.1) What are all these $@%*<> signs and how do I know when to use them?
  165. 4.2) Why do perl operators have different precedences than C operators?
  166. 4.3) What's the difference between dynamic and static (lexical) scoping?
  167. 4.4) What's the difference between deep and shallow binding?
  168. 4.5) How can I manipulate fixed-record-length files?
  169. 4.6) How can I make a file handle local to a subroutine?
  170. 4.7) How can I sleep or alarm for under a second?
  171. 4.8) How can I do an atexit() or setjmp()/longjmp() in perl? 
  172.       (Exception handling)
  173. 4.9) How can I catch signals in perl?
  174. 4.10) Why doesn't perl interpret my octal data octally?
  175. 4.11) How can I compare two date strings?
  176. 4.12) How can I find the Julian Day?
  177. 4.13) What's the fastest way to code up a given task in perl?
  178. 4.14) Do I always/never have to quote my strings or use semicolons?
  179. 4.15) What is variable suicide and how can I prevent it?
  180. 4.16) What does "Malformed command links" mean?
  181. 4.17) How can I set up a footer format to be used with write()?
  182. 4.18) Why does my perl program keep growing in size?
  183. 4.19) Can I do RPC in perl?
  184. 4.20) Why doesn't my sockets program work under System V (Solaris)?
  185. 4.21) How can I quote a variable to use in a regexp?
  186. 4.22) How can I change the first N letters of a string?
  187. 4.23) Can I use regular expressions to match balanced text?
  188. 4.24) What does it mean that regexps are greedy?  How do I get around it?
  189. 4.25) How do I use a regular expression to strip C style comments from a
  190.       file?
  191. 4.26) Why doesn't "local($foo) = <FILE>;" work correctly?
  192. 4.27) How can I detect keyboard input without reading it?
  193. 4.28) How can I read a single character from the keyboard under UNIX and
  194.       DOS?
  195. 4.29) How can I get input from the keyboard without it echoing to the
  196.       screen?
  197. 4.30) Is there any easy way to strip blank space from the beginning/end of
  198.       a string?
  199.  
  200.  
  201. Part 5 - Arrays and Shell and External Program Interactions
  202. 5.1) What is the difference between $array[1] and @array[1]?
  203. 5.2) How can I make an array of arrays or other recursive data types?
  204. 5.3) How can I make an array of structures containing various data types?
  205. 5.4) How can I extract just the unique elements of an array?
  206. 5.5) How can I tell whether an array contains a certain element?
  207. 5.6) How can I sort an associative array by value instead of by key?
  208. 5.7) How can I know how many entries are in an associative array?
  209. 5.8) What's the difference between "delete" and "undef" with %arrays?
  210. 5.9) Why don't backticks work as they do in shells?
  211. 5.10) Why does my converted awk/sed/sh script run more slowly in perl?
  212. 5.11) How can I call my system's unique C functions from perl?
  213. 5.12) Where do I get the include files to do ioctl() or syscall()?  [h2ph]
  214. 5.13) Why do setuid perl scripts complain about kernel problems?
  215. 5.14) How can I open a pipe both to and from a command?
  216. 5.15) How can I capture STDERR from an external command?
  217. 5.16) Why doesn't open() return an error when a pipe open fails?
  218. 5.17) Why can't my script read from STDIN after I gave it ^D (EOF)?
  219. 5.18) How can I translate tildes (~) in a filename?
  220. 5.19) How can I convert my shell script to perl?
  221. 5.20) Can I use perl to run a telnet or ftp session?
  222. 5.21) Why do I sometimes get an "Argument list to long" when I use <*>?
  223. 5.22) How do I do a "tail -f" in perl?
  224. 5.23) Is there a way to hide perl's command line from programs such as "ps"?
  225. 5.24) I {changed directory, modified my environment} in a perl script.  How
  226.       come the change disappeared when I exited the script?  How do I get
  227.       my changes to be visible?
  228. --
  229. Stephen P Potter        spp@vx.com        Varimetrix Corporation
  230. 2350 Commerce Park Drive, Suite 4                Palm Bay, FL 32905
  231. (407) 676-3222                           CAD/CAM/CAE/Software
  232.